package cn.wolfcode.luowowo.comment.query;

import cn.wolfcode.luowowo.common.query.QueryObject;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

/**
 * 攻略评论查询对象
 */
@Setter
@Getter
public class TravelCommentQuery extends QueryObject {
   private Long travelId = -1L;

   public Pageable getPageable(){
      return PageRequest.of(super.getCurrentPage()-1, super.getPageSize());
   }
}